<extend name="Public:layout"/>
<block name="js">
    <script src="__STATIC__/sz/js/public.js?v=__STATIC_VERSION__"></script>
    <script src="__STATIC__/plugin/share.js?v=__STATIC_VERSION__"></script>
    <script>
        $(document).ready(function(){
            $(".shareQqZoneIcon").on("click",function(){
                $(this).socialShare("qZone",{
                    url:location.href,
                    content:'',
                    title:''
                });
            });
            $(".shareMicroBlogIcon").on("click",function(){
                var title = $('title').text();
                var   rLink = location.href;
                var backUrl = location.href;
                var site = $('title').text();
                var pic = "";
                window.open("http://service.weibo.com/share/share.php?pic=" +encodeURIComponent(pic) +"&title=" +
                    encodeURIComponent(title.replace(/ /g, " ").replace(/<br \/>/g, " "))+ "&url=" + encodeURIComponent(rLink),
                    "分享至新浪微博");
            })
        });
    </script>
</block>
<block name="content">
    <!--关于我们公司介绍banner开始-->

    <div id="banner-pic">
        <div class="pic-content"><img src="__STATIC__/sz/images/newsBannerPic04_02.jpg" alt="公司新闻banner图片"/></div>
    </div>

    <!--面包屑导航开始-->
    <div id="sitemapNavWrap">
        <div class="inner">
            <ul class="sitemapNav">
                <li><strong>当前位置：</strong></li>
                <php>
                    $category = array(
                    'video'=>'视频新闻',
                    'company'=>'公司新闻',
                    'media'=>'媒体新闻',
                    'elegant'=>'公司风采',
                    );
                    $categoryUrl = array(
                    'video'=>U('News/video'),
                    'company'=>U('News/company'),
                    'media'=>U('News/media'),
                    'elegant'=>U('About/elegant'),
                    );
                </php>
                <li><a href="{$categoryUrl[$cat]}">{$category[$cat]}</a></li>
                <li><i> &gt; </i></li>
                <li><span>{$info.title}</span></li>
            </ul>
        </div>
    </div>
    <!--面包屑导航结束-->
    <!--关于我们公司介绍banner结束-->
    <div id="mediaDetail">
        <div id="mediaDetailContent" class="inner">
            <div class="mediaDetailMain">
                <h3 class="mediaDetailTitle">{$info.title}</h3>
                <ul class="mediaDetailExplain">
                    <li class="mediaDetailExplainTime"><p>{$info.create_time|date='Y-m-d   H:i', ###}</p></li>
                    <li class="mediaDetailExplainRoot"><p>来源:{$info.source}</p></li>
                    <li class="mediaDetailExplainAuthor"><p>作者：{$info.author}</p></li>
                    <li class="mediaDetailExplainShare">
                        <p>分享到：
                            <span class="shareMicroBlogIcon"></span>
                            <span class="shareQqZoneIcon"></span>
                            <span class="shareWinXinIcon">
                     </span>
                        </p>
                    </li>
                </ul>
                <div class="shareWinXinPicContent">
                    <img src="{$qrcode}" alt="微信分享二维码"/>
                </div>

                <div class="mediaDetailText">{$info.content|htmlspecialchars_decode}</div>
                <notempty name="info.video_id">
                    <div class="videoDetailVideoContent">
                        <div class="videoDetailVideo">
                            <embed src='http://player.youku.com/player.php/sid/{$info.video_id}/v.swf' allowFullScreen='true' quality='high' width='100%' height='100%' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' wmode="opaque" ></embed>
                        </div>
                    </div>
                </notempty>
                <div class="mediaDetailSkip">
                    <notempty name="up">
                        <dl class="clear">
                            <dt class="fl"><strong>上一篇：</strong></dt>
                            <dd class="fl"><a href="{:U('News/detail', 'id='.$up['article_id'].'&cat='.I('cat'))}" target="_blank">{$up.title}</a></dd>
                        </dl>
                    </notempty>
                    <notempty name="down">
                        <dl class="clear">
                            <dt class="fl"><strong>下一篇：</strong></dt>
                            <dd class="fl"><a href="{:U('News/detail', 'id='.$down['article_id'].'&cat='.I('cat'))}" target="_blank">{$down.title}</a></dd>
                        </dl>
                    </notempty>


                </div>
            </div>
            <div class="sideRecommend">
                <h3 class="sideRecommendHead">推荐阅读</h3>
                <ul>
                    <foreach name="recommend" item="vo">
                    <li class="recommendItem clear">
                        <a href="{:U('News/detail', 'id='.$vo['article_id'].'&cat='.I('cat'))}" class="fl recommendItemAvatar" target="_blank"><img src="{$vo.thumb}" alt="新闻缩略图"></a>
                        <a href="{:U('News/detail', 'id='.$vo['article_id'].'&cat='.I('cat'))}" class="fl recommendItemText" target="_blank">{$vo.title}</a>
                    </li>
                    </foreach>
                </ul>
            </div>
        </div>
    </div>
</block>